# while 1:
#     pass

# print("道歉完毕2")

# n=10
# i=10
# while i>=1:
#     print("*" * i)
#     i -=1              

       # 外层循环
       
#  0 1 2
# 0 1 2
# 0 1 2
# 0 1 2
# 0 1 2
# 0 1 2


# i = 0
# while i < 5:
#     # 内层循环
#     j = 0
#     while j < 3:
#         print(j, end=" ")
#         j += 1
        
#     print()   
    
#     i += 1     


# i = 0
# while i < 5:
#     # 内层循环
#     j = 0
#     while j < i+1:
#         print(j, end=" ")
#         j += 1
        
#     print()   
    
#     i += 1    

# i = 9
# while i > 1:
#     # 内层循环
#     j = 1
#     while j < i+1:
#         print("%d*%d=%d"%(j,i,i*j) ,end=" ")
#         j += 1
        
#     print()   
    
#     i -= 1  
    
# string = "hello,world"
# for i in string:
#     print(i,end="")
# print()
# print("e" in string)
# print("E" in string)

# print(list(range(5,10,2)))
# for i in range(10,0,-2):
#     print(i,end=" ") 
    
# for i in range(100,1000):
#     hundreds = i // 100
#     tens = i // 10 % 10
#     digits = i % 10
#     if(hundreds ** 3 + tens ** 3 + digits ** 3 == i):
#         print("水仙花数:{}*3^3+{}*3^3+{}*3^3={}".format(hundreds,tens,digits,i))   
 
# for i in range(10):
#     if i == 3:
#         break
#     print("媳妇，我错了！", i)
#     print("------------------------")
# for i in range(10):
#     if i % 2 == 0:
#         continue
#     print("媳妇，我错了！", i)

for i in range(10):
    if i == 9:
        break
    
    print("媳妇，我错了！", i)
else:
    # 如果循环里没有执行到break，此函数就会执行
    print("顺利完成！1")
i=0          
while i<10:
    print(i)
    i+=1
    if i==5:
        break
else:
    print("顺利完成！2")